<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo:  Fichier source de TesteurLabyrintheS.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_testeur_labyrinthe_s_8cpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">TesteurLabyrintheS.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_testeur_labyrinthe_s_8cpp.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;gtest/gtest.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_labyrinthe_8h.html">Labyrinthe.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">using namespace </span>TP1;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="_testeur_labyrinthe_s_8cpp.html#a9fe029b3fa0bea3f24ba45fd80ead08c">   25</a></span>&#160;<a class="code" href="_testeur_labyrinthe_s_8cpp.html#a9fe029b3fa0bea3f24ba45fd80ead08c">TEST</a>(<a class="code" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a>, _mettreParcourueAFaux_LabyrintheVide)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a> lab;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    ASSERT_NO_THROW(lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a7e3d3b3164b40651295d0bc49047fa18">_mettreParcourueAFaux</a>());</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="comment">//rien de spécial à vérifier, la méthode doit juste rouler normalement.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="_testeur_labyrinthe_s_8cpp.html#a6d2ad18b9bbea35acb7ffada1fa6fb4a">   32</a></span>&#160;<a class="code" href="_testeur_labyrinthe_s_8cpp.html#a9fe029b3fa0bea3f24ba45fd80ead08c">TEST</a>(<a class="code" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a>, _mettreParcourueAFaux_Labyrinthe1Piece)</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <a class="code" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a> lab;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> pc(<span class="stringliteral">&quot;p1&quot;</span>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    pc.<a class="code" href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">setParcourue</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a7297e9340033b8402836ced30e5c96e0">ajoutePieceLabyrinthe</a>(pc);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">//pc.setParcourue(true);</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a7e3d3b3164b40651295d0bc49047fa18">_mettreParcourueAFaux</a>();</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    ASSERT_FALSE(pc.<a class="code" href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">getParcourue</a>());</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">//  ASSERT_TRUE(pc.getParcourue());         //seulement pour des tests de debug</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;}</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">//TEST(Labyrinthe, _mettreParcourueAFaux_Labyrinthe2Piece)</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">//{</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">//  Labyrinthe lab;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">//  Piece pc1(&quot;p1&quot;);</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">//  pc1.setParcourue(true);</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">//  lab.ajoutePieceLabyrinthe(pc1);</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">//  Piece pc2(&quot;p2&quot;);</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">//  pc2.setParcourue(true);</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">//  lab.ajoutePieceLabyrinthe(pc2);</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">//  lab._mettreParcourueAFaux();</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">//  ASSERT_FALSE(pc1.getParcourue());</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">//  ASSERT_FALSE(pc2.getParcourue());</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">//}</span></div>
<div class="ttc" id="_testeur_labyrinthe_s_8cpp_html_a9fe029b3fa0bea3f24ba45fd80ead08c"><div class="ttname"><a href="_testeur_labyrinthe_s_8cpp.html#a9fe029b3fa0bea3f24ba45fd80ead08c">TEST</a></div><div class="ttdeci">TEST(Labyrinthe, _mettreParcourueAFaux_LabyrintheVide)</div><div class="ttdoc">Test: Vérifie que _mettreParcourueAFaux met bien tous les attributs parcourue à faux dans une liste...</div><div class="ttdef"><b>Definition:</b> <a href="_testeur_labyrinthe_s_8cpp_source.html#l00025">TesteurLabyrintheS.cpp:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_a7297e9340033b8402836ced30e5c96e0"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#a7297e9340033b8402836ced30e5c96e0">TP1::Labyrinthe::ajoutePieceLabyrinthe</a></div><div class="ttdeci">void ajoutePieceLabyrinthe(Piece &amp;p)</div><div class="ttdoc">Permet d&#39;ajouter une pièce au labyrinthe. </div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00079">Labyrinthe.cpp:79</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html">TP1::Labyrinthe</a></div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8h_source.html#l00031">Labyrinthe.h:31</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_a7e3d3b3164b40651295d0bc49047fa18"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#a7e3d3b3164b40651295d0bc49047fa18">TP1::Labyrinthe::_mettreParcourueAFaux</a></div><div class="ttdeci">void _mettreParcourueAFaux()</div><div class="ttdoc">mets l&#39;attribut parcourue à faux pour chaque piece dans le labyrinthe </div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00521">Labyrinthe.cpp:521</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a98c3d80561cf8cef97a703c845939af9"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">TP1::Piece::setParcourue</a></div><div class="ttdeci">void setParcourue(bool p)</div><div class="ttdoc">Pour initialiser l&#39;attibut parcourue à true ou false. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00080">Piece.cpp:80</a></div></div>
<div class="ttc" id="_labyrinthe_8h_html"><div class="ttname"><a href="_labyrinthe_8h.html">Labyrinthe.h</a></div><div class="ttdoc">Ce fichier contient l&#39;interface d&#39;un labyrinthe. </div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a53b001896020934e421b1a5042771dbf"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">TP1::Piece::getParcourue</a></div><div class="ttdeci">bool getParcourue() const </div><div class="ttdoc">Permet d&#39;accéder à la donnée membre parcourue. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00090">Piece.cpp:90</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_testeur_labyrinthe_s_8cpp.html">TesteurLabyrintheS.cpp</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
